<?php


namespace App\Rpc\common;


interface UploadInterface
{
    /**
     * 上传头像file文件
     * @param object $avatar
     * @param array $params
     * @return array
     */
    public function uploadAvatar(object $avatar, array $params): array;

    /**
     * 上传聊天file文件
     * @param object $file
     * @param array $params
     * @return array
     */
    public function uploadChatFile(object $file, array $params): array;

}